#!/bin/bash

dateStr=$(date "+%Y%m%d")
echo "---->${dateStr}"
log_path=/user_clicks/${dateStr}/
echo "---->${log_path}"
/opt/lagou/servers/hive/bin/hive -e "use default; load data inpath '${log_path}' into table user_clicks partition(dt='${dateStr}');"
